<?php
require_once '../BusinessLogicTier/binhluanBUS.php';
$maCH=1;
$blBUS = new binhluanBUS();
$binhLuan = $blBUS->getBinhLuanByMaCH('1', '0', 0, 2);
$soLuongBLND = $blBUS->getSoLuongBLByMaCH($maCH, '0');
$soLuongBLCG = $blBUS->getSoLuongBLByMaCH($maCH, '1');
?>
<!doctype html>
<html lang=en>
<head>
<meta  http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/cauhoi.css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
var maCH = "<?php echo $maCH ?>";
var soLuongBLND = "<?php echo $soLuongBLND ?>";
var soLuongBLCG = "<?php echo $soLuongBLCG ?>";
</script>
<script src="javascript/cauhoi.js"></script>
</head>
<body>
<div id="container">
	<div>
		<nav>
			<ul id="tab-menu">
				<li id="li-nd"><a href="#" onclick="loadBinhLuan(1, 0)">Ý kiến người dùng</a></li>
				<li id="li-cg"><a href="#" onclick="loadBinhLuan(1, 1)">Ý kiến của chuyên gia</a></li>
			</ul>
		</nav>
	</div>
	<div id="content">
		<?php 
		foreach ($binhLuan as $obj) { echo "<div id='div-binhluan'>" . $obj->getNoiDung() . "</div>";}			
		?>
	</div>
</div>

</body>
</html>